package _1009.digui;

public class DiguiDemo {
	
	public void printNum(int num) {	
		System.out.println(num);
		if(num ==1) {
			return;
		}else {
			printNum(num-1);
		}
	}
	
	public int eatPeach (int day) {
		if (day == 5) {
			return 1;
		}else {
			return (eatPeach (day+1) + 1 ) * 2;
		}
	}
	
	public static void main(String[] args) {
		DiguiDemo dd = new DiguiDemo();
//		dd.printNum(100);
		
		System.out.println(dd.eatPeach(1));
	}
}
